﻿using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using DevExpress.Utils;
using DevExpress.XtraBars;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
using Padding = DevExpress.XtraLayout.Utils.Padding;
using DevExpress.XtraLayout;
using Common;

namespace Dictionary
{
    public class xucProductState : xucBase
    {
        private Bar bar3;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private GridColumn colPrice;
        private GridColumn colStateCode;
        private GridColumn colStateName;
        private GridColumn colUnit;
        private IContainer components;
        private GridView gbList;
        private GridControl gcList;
        private LayoutControl layoutControl1;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlItem layoutControlItem2;
        private SplitContainerControl splitContainerControl1;
        private xucListState xucListState1;

        public xucProductState()
        {
            InitializeComponent();
            xucListState1.LoadData();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            components = new Container();
            xucListState1 = new xucListState();
            layoutControl1 = new LayoutControl();
            gcList = new GridControl();
            gbList = new GridView();
            colStateCode = new GridColumn();
            colStateName = new GridColumn();
            colUnit = new GridColumn();
            colPrice = new GridColumn();
            layoutControlGroup1 = new LayoutControlGroup();
            splitContainerControl1 = new SplitContainerControl();
            layoutControlItem2 = new LayoutControlItem();
            barManager1 = new BarManager(components);
            barDockControlTop = new BarDockControl();
            barDockControlBottom = new BarDockControl();
            barDockControlLeft = new BarDockControl();
            barDockControlRight = new BarDockControl();
            bar3 = new Bar();
            layoutControl1.BeginInit();
            layoutControl1.SuspendLayout();
            gcList.BeginInit();
            gbList.BeginInit();
            layoutControlGroup1.BeginInit();
            splitContainerControl1.BeginInit();
            splitContainerControl1.SuspendLayout();
            layoutControlItem2.BeginInit();
            barManager1.BeginInit();
            base.SuspendLayout();
            xucListState1.Dock = DockStyle.Fill;
            xucListState1.Location = new Point(0, 0);
            xucListState1.Name = "xucListState1";
            xucListState1.Size = new Size(230, 0x1f1);
            xucListState1.TabIndex = 0;
            layoutControl1.Controls.Add(gcList);
            layoutControl1.Dock = DockStyle.Fill;
            layoutControl1.Location = new Point(0, 0);
            layoutControl1.Name = "layoutControl1";
            layoutControl1.Root = layoutControlGroup1;
            layoutControl1.Size = new Size(0x252, 0x1f1);
            layoutControl1.TabIndex = 1;
            layoutControl1.Text = "layoutControl1";
            gcList.Location = new Point(4, 2);
            gcList.MainView = gbList;
            gcList.Name = "gcList";
            gcList.Size = new Size(0x24c, 0x1ed);
            gcList.TabIndex = 5;
            gcList.ViewCollection.AddRange(new BaseView[] {gbList});
            gbList.BorderStyle = BorderStyles.NoBorder;
            gbList.Columns.AddRange(new[] {colStateCode, colStateName, colUnit, colPrice});
            gbList.GridControl = gcList;
            gbList.Name = "gbList";
            gbList.OptionsView.ShowGroupPanel = false;
            colStateCode.Caption = "M\x00e3 c\x00f4ng đoạn";
            colStateCode.FieldName = "StateCode";
            colStateCode.Name = "colStateCode";
            colStateCode.Visible = true;
            colStateCode.VisibleIndex = 0;
            colStateName.Caption = "T\x00ean c\x00f4ng đoạn";
            colStateName.FieldName = "StateName";
            colStateName.Name = "colStateName";
            colStateName.Visible = true;
            colStateName.VisibleIndex = 1;
            colUnit.Caption = "Đơn vị t\x00ednh";
            colUnit.FieldName = "Unit";
            colUnit.Name = "colUnit";
            colUnit.Visible = true;
            colUnit.VisibleIndex = 2;
            colPrice.Caption = "Đơn gi\x00e1";
            colPrice.FieldName = "Price";
            colPrice.Name = "colPrice";
            colPrice.Visible = true;
            colPrice.VisibleIndex = 3;
            layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            layoutControlGroup1.GroupBordersVisible = false;
            layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] {layoutControlItem2});
            layoutControlGroup1.Location = new Point(0, 0);
            layoutControlGroup1.Name = "layoutControlGroup1";
            layoutControlGroup1.Padding = new Padding(2, 0, 0, 0);
            layoutControlGroup1.Size = new Size(0x252, 0x1f1);
            layoutControlGroup1.Spacing = new Padding(0, 0, 0, 0);
            layoutControlGroup1.Text = "layoutControlGroup1";
            layoutControlGroup1.TextVisible = false;
            splitContainerControl1.Dock = DockStyle.Fill;
            splitContainerControl1.Location = new Point(2, 2);
            splitContainerControl1.Name = "splitContainerControl1";
            splitContainerControl1.Panel1.Controls.Add(xucListState1);
            splitContainerControl1.Panel1.Text = "Panel1";
            splitContainerControl1.Panel2.Controls.Add(layoutControl1);
            splitContainerControl1.Panel2.Text = "Panel2";
            splitContainerControl1.Size = new Size(830, 0x1f1);
            splitContainerControl1.SplitterPosition = 230;
            splitContainerControl1.TabIndex = 2;
            splitContainerControl1.Text = "splitContainerControl1";
            layoutControlItem2.Control = gcList;
            layoutControlItem2.CustomizationFormText = "layoutControlItem2";
            layoutControlItem2.Location = new Point(0, 0);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Size = new Size(0x250, 0x1f1);
            layoutControlItem2.Text = "layoutControlItem2";
            layoutControlItem2.TextSize = new Size(0, 0);
            layoutControlItem2.TextToControlDistance = 0;
            layoutControlItem2.TextVisible = false;
            barManager1.Bars.AddRange(new[] {bar3});
            barManager1.DockControls.Add(barDockControlTop);
            barManager1.DockControls.Add(barDockControlBottom);
            barManager1.DockControls.Add(barDockControlLeft);
            barManager1.DockControls.Add(barDockControlRight);
            barManager1.Form = this;
            barManager1.MaxItemId = 0;
            barManager1.StatusBar = bar3;
            bar3.BarName = "Status bar";
            bar3.CanDockStyle = BarCanDockStyle.Bottom;
            bar3.DockCol = 0;
            bar3.DockStyle = BarDockStyle.Bottom;
            bar3.OptionsBar.AllowQuickCustomization = false;
            bar3.OptionsBar.DrawDragBorder = false;
            bar3.OptionsBar.UseWholeRow = true;
            bar3.Text = "Status bar";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(splitContainerControl1);
            base.Controls.Add(barDockControlLeft);
            base.Controls.Add(barDockControlRight);
            base.Controls.Add(barDockControlBottom);
            base.Controls.Add(barDockControlTop);
            base.Name = "xucProductState";
            base.Padding = new System.Windows.Forms.Padding(2);
            base.Size = new Size(0x342, 0x20b);
            layoutControl1.EndInit();
            layoutControl1.ResumeLayout(false);
            gcList.EndInit();
            gbList.EndInit();
            layoutControlGroup1.EndInit();
            splitContainerControl1.EndInit();
            splitContainerControl1.ResumeLayout(false);
            layoutControlItem2.EndInit();
            barManager1.EndInit();
            base.ResumeLayout(false);
        }
    }
}